package com.daohang361.imqq.tool;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class YYYYmmdd {
	public static int GetYyyymmdd()
	{
		Calendar cal1=Calendar.getInstance(); 
		SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMdd"); 
        return Integer.parseInt(sdf.format(cal1.getTime())); 
	}
	public static String getNow()
	{
		Calendar cal1=Calendar.getInstance(); 
		SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss"); 
        return sdf.format(cal1.getTime()); 
	}
	public static int getNowDate()
	{
		Calendar cal1=Calendar.getInstance(); 
		SimpleDateFormat sdf=new SimpleDateFormat("dHHmmss"); 
        return Integer.parseInt(sdf.format(cal1.getTime())); 
	}
	public static int getHHmmss()
	{
		Calendar cal1=Calendar.getInstance(); 
		SimpleDateFormat sdf=new SimpleDateFormat("HHmmss"); 
        return Integer.parseInt(sdf.format(cal1.getTime())); 
	}
	
	public static void main(String a[]){
		Calendar cal1=Calendar.getInstance(); 
	System.out.println(cal1.getTime());	
	}
}
